Ext.define('OrderConvert.view.log.LogGridFormController', {
    extend: 'Ext.app.ViewController',
    alias: 'controller.log-loggridform',


    search : function (btn) {
        var form = btn.up("form");
        var values = form.getValues();
        var logGridMain = form.up("loggridmain");
        var grid = logGridMain.down("grid");
        var store = grid.getStore();
        for(var key in values){
            store.getProxy().setExtraParam(key,values[key]);
        }
        store.load();
    }
});
